﻿int [] array = new int[]{3,1,2,5,4,9,7,2};
#region  1、查找数组

//输出数组中下标为3的元素
//Console.WriteLine(array[3]);
#endregion

#region  2、更新数据
//给下标为5的元素赋值
//array[5]=10;
//打印array
//Console.WriteLine(array[5]);

//遍历数组array  foreach
// foreach(int num in array){
//  Console.Write(num+" ");
// }
// Console.WriteLine();

//遍历数组array for
for(int i=0;i<array.Length;i++){
    Console.Write(array[i] + " ");
}
Console.WriteLine();
#endregion

#region  3、插入数据


#endregion
